//------------------------------------------------------------------------------
// <copyright file="Authors.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace DotBeer.Business.Entities
{
    public class Authors : ObservableCollection<string>
    {
        #region private members

        private static volatile Authors instance;
        private static object syncRoot = new Object();

        #endregion

        #region properties

        public static Authors Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (syncRoot)
                    {
                        if (instance == null)
                            instance = new Authors();
                    }
                }

                return instance;
            }

        }

        #endregion
    }
}
